package com.sls.web.manager.game.service;

import com.sls.web.manager.game.pojo.SnnsGoodsInfo;
import com.sls.web.manager.game.querybean.SnnsProductQuery;
import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;

/**
 * 
 * @description 7996商品管理service
 * @author Wangxuegang
 * @date  2013-4-23
 */
public interface SnnsGoodsService {

	/**
	 * 批量上架
	 * 
	 * @param goodsState
	 * @param userInfoVO
	 */
	public void batchOnline(String goodsState, UserInfoVO userInfoVO);
	
	/**
	 * 批量下架
	 * 
	 * @param goodsState
	 * @param userInfoVO
	 */
	public void batchOffline(String goodsState, UserInfoVO userInfoVO); 
	
	/**
	 * 商品批量审核
	 * 
	 * @return
	 * @throws Exception
	 */
	public boolean confirmAudit(String suppliersId, int priceRatio,
			UserInfoVO userInfoVO) throws Exception;
	
	/**
	 * 数据保存
	 * @param snnsGoodsInfo
	 * @param userInfoVO
	 * @throws Exception
	 */
	public void save(SnnsGoodsInfo snnsGoodsInfo, UserInfoVO userInfoVO)
			throws Exception;
	
	/**
	 * 分页查询
	 * 
	 * @param enlinkQuery
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public Pagination<SnnsGoodsInfo> querySnnsProduct(
			SnnsProductQuery snnsQuery, UserInfoVO userInfoVO)
			throws Exception;
	
	/**
	 * 根据商品id,查询商品记录
	 * @param product_id
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public SnnsGoodsInfo queryByProductId(String product_id,
			UserInfoVO userInfoVO) throws Exception;
	
	/**
	 * 记录更新
	 * @param snnsGoodsInfo
	 * @param userInfoVO
	 * @throws Exception
	 */
	public void update(SnnsGoodsInfo snnsGoodsInfo, UserInfoVO userInfoVO)
			throws Exception;
}
